#!/bin/sh

libs=@LIBS@
cxxflags=@CXXFLAGS@
cppflags=@CPPFLAGS@
linkdeps=@LINKDEPS@

usage()
{
	cat <<EOF
Usage: risse-config [OPTION]
Get risse compilation and linking information.

Options:
  --libs           display flags for linking with the risse library
  --cxxflags       display cxxflags for compiling with the risse library
  --cppflags       display cppflags for compiling with the risse library
  --linkdeps       display link deps for Makefile with the risse library
EOF
	exit $1
}

if test $# -eq 0 ; then
  usage 1 1>&2
fi

case $1 in
--libs)
	echo $libs
	;;
--cxxflags)
	echo $cxxflags
	;;
--cppflags)
	echo $cppflags
	;;
--linkdeps)
	echo $linkdeps
	;;
*)
  usage 1 1>&2
	;;
esac


